class IncomeExpenseAnnualSummary {
  IncomeExpenseAnnualSummary({
    this.year,
    this.cashIncome,
    this.cashExpense,
    this.cashBalance,
    this.creditCardIncome,
    this.creditCardExpense,
    this.creditCardBalance,
  });

  factory IncomeExpenseAnnualSummary.fromJson(Map<String, dynamic> json) {
    return IncomeExpenseAnnualSummary(
      year: json['year']?.toString(),
      cashIncome: json['cashIncome']?.toDouble(),
      cashExpense: json['cashExpense']?.toDouble(),
      cashBalance: json['cashBalance']?.toDouble(),
      creditCardIncome: json['creditCardIncome']?.toDouble(),
      creditCardExpense: json['creditCardExpense']?.toDouble(),
      creditCardBalance: json['creditCardBalance']?.toDouble(),
    );
  }

  String? year;
  double? cashIncome;
  double? cashExpense;
  double? cashBalance;
  double? creditCardIncome;
  double? creditCardExpense;
  double? creditCardBalance;
}
